package com.glsc.ngateway.common.base.domainmapper;

import com.glsc.ngateway.common.api.platform.dto.it.VirtualManageExportFull;
import org.springframework.jdbc.core.RowMapper;

import java.sql.ResultSet;
import java.sql.SQLException;

public class VirtualRowMapperFull implements RowMapper<VirtualManageExportFull> {

    @Override
    public VirtualManageExportFull mapRow(ResultSet rs, int rowNum) throws SQLException {
        VirtualManageExportFull virtualManageExportFull = new VirtualManageExportFull();
        virtualManageExportFull.setDevId(rs.getString("dev_id"));
        virtualManageExportFull.setBusinessName(rs.getString("business_name"));
        virtualManageExportFull.setNetworkSegment(rs.getString("network_segment"));
        virtualManageExportFull.setApplicationDetail(rs.getString("application_detail"));
        virtualManageExportFull.setMachineArea(rs.getString("machine_area"));
        virtualManageExportFull.setVirtualName(rs.getString("virtual_name"));
        virtualManageExportFull.setOperationSys(rs.getString("operation_sys"));
        virtualManageExportFull.setMachineRoom(rs.getString("machine_room"));
        virtualManageExportFull.setIp1(rs.getString("ip1"));
        virtualManageExportFull.setIp2(rs.getString("ip2"));
        virtualManageExportFull.setVcentIp(rs.getString("vcent_ip"));
        virtualManageExportFull.setCpu(rs.getString("cpu"));
        virtualManageExportFull.setMemory(rs.getString("memory"));
        virtualManageExportFull.setVirtualIp(rs.getString("virtual_ip"));
        virtualManageExportFull.setQj(rs.getString("qj"));
        virtualManageExportFull.setName(rs.getString("name"));
        virtualManageExportFull.setDepartment(rs.getString("department"));
        virtualManageExportFull.setBz(rs.getString("bz"));
        virtualManageExportFull.setMac1(rs.getString("mac1"));
        virtualManageExportFull.setMac2(rs.getString("mac2"));
        virtualManageExportFull.setIp3(rs.getString("ip3"));
        virtualManageExportFull.setIp4(rs.getString("ip4"));
        virtualManageExportFull.setBf(rs.getString("bf"));
        virtualManageExportFull.setMark(rs.getString("mark"));


        return virtualManageExportFull;
    }


}

